﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPages/AdminMaster.master" AutoEventWireup="true" CodeFile="CandidateAssessor.aspx.cs" Inherits="Assessor_CandidateAssessor_" %>
<%@ Register Assembly="TimePicker" Namespace="MKB.TimePicker" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
     <style type="text/css">
        #ContentPlaceHolder1_mainMenu {
            width: 100%;
            height: 30px;
            border: 1px solid #000;
            background-color: #cccccc;
            font-family: Verdana,Arial,sans-serif;
        }
        label{font-weight: 300;
  padding: 0px 5px;}

            #ContentPlaceHolder1_mainMenu ul {
                height: 60px;
            }

            #ContentPlaceHolder1_mainMenu a.static {
                color: #777;
                font-size: 12px;
                background: #d5d1d1;
                height: 26px;
            }

                /*.static {
            font-size: 10px;
            color: #777;
        }*/

                #ContentPlaceHolder1_mainMenu a.static:hover {
                    background-color: #e6e6e6;
                    border: 1px solid #eee;
                    height: 26px;
                    text-align: center;
                    float: left !important;
                    line-height: 20px;
                }

        .RadioButtonWidthMale label {
            width: 45px;
            margin-left: 6px;
        }

        #ContentPlaceHolder1_mainMenu a.static {
            margin-left: 0px;
            border: 1px solid #eee;
            height: 26px;
            margin-top: 0px;
            text-align: center;
            padding-left: 15px;
            padding-right: 15px;
            float: left !important;
            line-height: 25px;
        }

        .shadow {
            box-shadow: inset 0 0 25px #000000;
            border-radius: 6px;
        }
    </style>
    <script type="text/javascript" lang="javascript">

        function validateFileSize() {
            var uploadControl = document.getElementById('<%= filGDDocument.ClientID %>');
            var lblSize = document.getElementById('<%= lblMaxFileSize.ClientID %>');
            if (uploadControl.files[0].size > 5342880) {
                lblSize.innerText = "Uploaded document file size should not be greater than 5 MB.";
                uploadControl.value = "";
                return false;
            }
            else {
                lblSize.innerText = "";
                return true;
            }
        }

    </script>
    <table style="width: 100%;" class="shadow">
        <tr>
            <td>
                  <asp:Menu ID="mainMenu" runat="server" RenderingMode="List" Orientation="Horizontal" OnMenuItemClick="mainMenu_MenuItemClick">
                                                <Items>
                                                    <asp:MenuItem Value="0" Text="Brief Details"></asp:MenuItem>
                                                    <asp:MenuItem Value="1" Text="Proposal"></asp:MenuItem>
                                                    <asp:MenuItem Value="2" Text="Group Discussion + Interviews"></asp:MenuItem>
                                                    <asp:MenuItem Value="3" Text="Summary Report"></asp:MenuItem>
                                                    <asp:MenuItem Value="4" Text="Past Research"></asp:MenuItem>
                                                    <asp:MenuItem Value="5" Text="Market Research Report"></asp:MenuItem>
                                                    <asp:MenuItem Value="6" Text="More Details"></asp:MenuItem>
                                                    <%--    <asp:MenuItem  Value="7" Text="Preview"></asp:MenuItem>--%>
                                                </Items>
                                                <StaticMenuItemStyle CssClass="menuItem" />
                                                <StaticMenuItemStyle CssClass="normalmenuItem" />
                                                <StaticSelectedStyle CssClass="selectedItem" />
                                                <StaticHoverStyle CssClass="hoverItem" />
                                            </asp:Menu>
  
    <table style=" margin-left:60px; width: 95%;">
          <tr>
             <td>
                 <h2>Group Discussion + Interviews</h2>
             </td>
         </tr>
        <tr>
            <td>
                <table>
                     <tr>
             <td style="text-align:right;width:35%;"></td>
             <td style="width:1%;"></td>
             
             <td style="width:64%;"></td>
        </tr>
        <tr>
            <td style="text-align:right;">Group Discussion Type <font color="red">*</font></td>
            <td>&nbsp;&nbsp;:&nbsp;&nbsp;</td>
            <td>
                <asp:DropDownList ID="ddlGroupDiscussionType" runat="server" AppendDataBoundItems="true">
                     <asp:ListItem Text="Focus Group" Value="1" />
                </asp:DropDownList>
            </td>
        </tr>

        <tr>
            <td style="text-align:right;">Location<font color="red">*</font></td>
            <td>&nbsp;&nbsp;:&nbsp;&nbsp;</td>
            <td><asp:TextBox ID="txtGroupDiscussionLocation" TextMode="MultiLine" MaxLength="500" Height="99px" Width="295px" placeholder="Enter location details" runat="server"></asp:TextBox></td>
        </tr>
                     <tr style="height:10px;">
                        <td></td>
                        <td></td>
                        <td></td>
                    </tr>
        <tr>
            <td style="text-align:right;">Preferred Language for <br /> Moderation Assessment</td>
            <td>&nbsp;&nbsp;:&nbsp;&nbsp;</td>
            <td>
                <asp:Panel Style="width: 300px; border:solid; border-color:#DEDCDC; height: 150px; borderwidth:1px;" ID="pnlRd" ScrollBars="Vertical" runat="server">
                       <asp:CheckBoxList ID="chkGroupDiscussionLanguage" runat="server">
                           <asp:ListItem Text="English-UK" Value="0" Selected="True" />
                            <asp:ListItem Text="English-US" Value="1" />
                            <asp:ListItem Text="French" Value="2" />
                           <asp:ListItem Text="Burmese" Value="3" />
                            <asp:ListItem Text="Italian" Value="4" />
                            <asp:ListItem Text="Japanese" Value="5" />
                       </asp:CheckBoxList>&nbsp;
                </asp:Panel>
            </td>
        </tr>
                     <tr style="height:10px;">
                        <td></td>
                        <td></td>
                        <td></td>
                    </tr>
         <tr>
             <td colspan="3">
                 <asp:GridView ID="gvCandidateSelectAssessordate" runat="server" PageSize="10" AllowPaging="true" Width="95%" AutoGenerateColumns="false" OnRowDataBound="gvCandidateSelectAssessordate_RowDataBound">
                      <Columns>
                          <asp:BoundField DataField="GDID" HeaderText="&nbsp;ID" Visible="false" InsertVisible="true">
                                    <ItemStyle HorizontalAlign="Left" Width="20%"  />
                                    <HeaderStyle HorizontalAlign="Left" />
                             </asp:BoundField>
                             <asp:BoundField DataField="GDStartDate" HeaderText="&nbsp;Date">
                                    <ItemStyle HorizontalAlign="Left" Width="20%"  />
                                    <HeaderStyle HorizontalAlign="Left" />
                             </asp:BoundField>
                                                   
                           <asp:TemplateField>
                            <HeaderTemplate>
                              &nbsp;<asp:CheckBox ID="checkAllFirstHalf" runat="server" Text="&nbsp;&nbsp;First half(AM)" TextAlign="Right" onclick = "checkAll(this,'H');" />
                            </HeaderTemplate>
                            <ItemTemplate>
                                <table>
                                    <tr>
                                        <td><asp:CheckBox type="checkbox" runat="server" ID="chkApproveFirstHalf" EnableViewState="true" onclick = "checkAll(this,'I');" /></td>
                                        <td><cc1:TimeSelector ID="txtFHTime" runat="server" AllowSecondEditing="true"></cc1:TimeSelector> </td>
                                    </tr>
                                </table>
                               
                                
                            </ItemTemplate>
                            <ItemStyle Width="30%" />
                        </asp:TemplateField>
                          <asp:TemplateField>
                            <HeaderTemplate>
                              &nbsp;<asp:CheckBox ID="checkAllSecondHalf" runat="server" Text="&nbsp;&nbsp;Second half(PM)" TextAlign="Right" onclick = "checkAll(this,'H');" />
                            </HeaderTemplate>
                            <ItemTemplate>
                                <table>
                                    <td><asp:CheckBox type="checkbox" runat="server" ID="chkApproveSecondHalf" EnableViewState="true" onclick = "checkAll(this,'I');" /></td>
                                    <td><cc1:TimeSelector ID="txtSHTime" runat="server" AllowSecondEditing="true"></cc1:TimeSelector></td>
                                </table>
                                
                                
                            </ItemTemplate>
                            <ItemStyle Width="30%" />
                        </asp:TemplateField>
                         
                    </Columns>
                    <FooterStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#E2DED6" ForeColor="blue" HorizontalAlign="Center" />
                    <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                    <HeaderStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
                    <EditRowStyle BackColor="#CCCCCC" />
                    <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                 </asp:GridView>
                 </td>
             </tr>
        <tr style="height:20px;">
            <td colspan="3"></td>
        </tr>
          <tr runat="server" id="vButton" >
                <td></td>
            <td></td>
             <td  >
                 <asp:Button ID="btnSave" runat="server" Text="Save" />&nbsp;&nbsp;&nbsp;&nbsp;
                 <asp:Button ID="btnCancel" runat="server" Text="Cancel" />
             </td>
         </tr>
                    <tr>
                        <td colspan="3">
                            <h2>Discussion Guide Document</h2>

                        </td>
                    </tr>
                    <tr style="height:10px;">
                        <td></td>
                        <td></td>
                        <td></td>
                    </tr>
                    <tr>
                        <td style="text-align:right;">Discussion Guide is written by Moderator</td>
                        <td>&nbsp;&nbsp;:&nbsp;&nbsp;</td>
                         <td runat="server" id="td1">
                             <asp:RadioButtonList ID="rbtInternal_External" CssClass="RadioButtonWidthMale" runat="server" RepeatDirection="Horizontal" RepeatLayout="Table" AutoPostBack="True" OnSelectedIndexChanged="rbtInternal_External_SelectedIndexChanged">
                             <asp:ListItem Value="Internal">Internal&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</asp:ListItem>
                             <asp:ListItem Value="External">External</asp:ListItem>
                             </asp:RadioButtonList>
                          </td>
                     
                    </tr>
                    <tr style="height:10px;">
                        <td></td>
                        <td></td>
                        <td></td>
                    </tr>
                     <tr runat="server" id="trCandidateName">
                        <td style="text-align:right;">Candidate Name </td>
                        <td>&nbsp;&nbsp;:&nbsp;&nbsp;</td>
                        <td>
                            <asp:TextBox ID="txtCandidateName" runat="server"></asp:TextBox></td>
                    </tr>
                     <tr style="height:10px;">
                        <td></td>
                        <td></td>
                        <td></td>
                    </tr>
                     <tr runat="server" id="trRegistrationNumber">
                        <td style="text-align:right;">Registration Number</td>
                        <td>&nbsp;&nbsp;:&nbsp;&nbsp;</td>
                        <td>
                            <asp:TextBox ID="txtRegistrationNumber" runat="server"></asp:TextBox></td>
                    </tr>
                     <tr style="height:10px;">
                        <td></td>
                        <td></td>
                        <td></td>
                    </tr>
                     <tr runat="server" id="trAssessorName">
                        <td style="text-align:right;">External Assessor Name</td>
                        <td>&nbsp;&nbsp;:&nbsp;&nbsp;</td>
                        <td>
                            <asp:TextBox ID="txtAssessorName" runat="server"></asp:TextBox></td>
                    </tr>
                     <tr style="height:10px;">
                        <td></td>
                        <td></td>
                        <td></td>
                    </tr>
                     <tr>
                        <td style="text-align:right;">Upload Discussion Guide <font color="red">*</font></td>
                        <td>&nbsp;&nbsp;:&nbsp;&nbsp;</td>
                        <td><asp:FileUpload ID="filGDDocument" runat="server" onchange="validateFileSize();"/><br />
                            
                            <asp:Button ID="btnGDDocument" runat="server" OnClick="btnGDDocument_Click" SkinID="buttonSkin" Text="Upload" ValidationGroup="GDDocumentValidate" />
                            &nbsp;&nbsp;<asp:Label runat="server" ID="lblMaxFileSize" Text="" ForeColor="Red" ></asp:Label>
                        </td>
                    </tr>
                     <tr style="height:10px;">
                        <td></td>
                        <td></td>
                        <td></td>
                    </tr>
                    
                     <tr>
                        <td style="text-align:right;">Please confirm for proceeding to the next step <font color="red">*</font></td>
                        <td>&nbsp;&nbsp;:&nbsp;&nbsp;</td>
                        <td>
                            <asp:CheckBox ID="chkGDDocument" runat="server" Text="" />
                         </td>
                    </tr>
                     <tr style="height:50px;">
                        <td></td>
                        <td></td>
                        <td><asp:Button ID="btnNext" runat="server" Text="Next" ValidationGroup="NextValidation" />
                                    </td>
                    </tr>
                </table>
            </td>
        </tr>        
        
    </table>
                          </td>
        </tr>
    </table>
</asp:Content>

